﻿@model List<ITXHWEB.Models.WBFEHLModel>
@using (Html.BeginForm("MWB19X", "WBFEHL"))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()
    <script type="text/javascript">
        function OnEKEYChg(_EPOS, _EKEY) {
            var status = $("#ekeyDropDown" + _EPOS).val();  
            var dataString = 'EPOS=' + _EPOS + '&EKEY=' + _EKEY ;
        $.ajax({
            type: 'POST',
            url: "/WBFEHL/OnEKEYChg",
            data: dataString,
            success:
                        function () { location.reload(true); },
            Error: function () { alert("failure"); }
        });
    }
    </script>
    <div class="AllErrors">
        <table>
            <tr>
                <th>
                    ID
                </th>
                <th>
                    疵点
                </th>
                <th>
                    选择
                </th>
                <th>
                    起始
                </th>
                <th>
                    结束
                </th>
                <th>
                    分值
                </th> 
                @*<th></th>*@
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.EPOS)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.EKEY)
                    </td>
                    <td> 
                        @Html.DropDownListFor(modelItem => item.EKEY, item.ErrorList, new { id = "ekeyDropDown" + item.EPOS })
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.WBFLGVON)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.WBFLGBIS)
                    </td>
                   
                    <td>
                        @Html.DisplayFor(modelItem => item.EPOINTS)
                    </td>
                       <td>
                            <a onclick="OnEKEYChg('@item.EPOS','@item.EKEY')" style="cursor:pointer;text-decoration:underline;color:Blue">
                                保存
                            </a>
                        </td>
                 
                </tr>
            }
        </table>
        <div>
            <br />
        </div>
    </div>
    @Html.Action("PWBNEWQI", "WBBST")
} 
